package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("gulimall-order")    //指定要调用哪个远程服务
public interface OrderFeignService {
    /**
     * 根据 订单号 查询订单的详细信息
     */
    @GetMapping("/order/order/status/{orderSn}")    //指定要远程调用哪个服务方法
    R getOrderStatus(@PathVariable("orderSn") String orderSn);
}
